package com.ruoyi.system.domain;

import java.util.Date;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品次卡规则操作记录对象 pass_card_rule_operation_log
 *
 * @author ruoyi
 * @date 2025-05-23
 */
public class PassCardRuleOperationLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 操作记录唯一标识符（自增数字ID） */
    private Long id;

    /** 商品次卡编号（如"YOGA_PASS_10"） */
    @Excel(name = "商品次卡编号")
    private String passCardCode;

    /** 门店信息（JSON格式，如{"store_id": "STORE001", "store_name": "北京旗舰店"}） */
    @Excel(name = "门店信息")
    private String storeInfo;

    /** 操作门店ID（如"STORE001"） */
    @Excel(name = "操作门店ID")
    private String operatedStoreId;

    /** 操作门店名称（如"北京旗舰店"） */
    @Excel(name = "操作门店名称")
    private String operatedStoreName;

    /** 操作类型（设置/删除/修改次卡规则） */
    @Excel(name = "操作类型", readConverterExp = "设=置/删除/修改次卡规则")
    private String operationType;

    /** 操作开始时间（如"2023-10-01 14:30:00"） */
    @Excel(name = "操作开始时间")
    private Date operationStartTime;

    /** 操作结束时间（如"2023-10-01 14:35:00"） */
    @Excel(name = "操作结束时间")
    private Date operationEndTime;

    /** 操作员工ID（如"EMP001"） */
    @Excel(name = "操作员工ID")
    private String operatorId;

    /** 操作员工姓名（如"张三"） */
    @Excel(name = "操作员工姓名")
    private String operatorName;

    /** 操作内容详情（如JSON格式的规则变更记录） */
    @Excel(name = "操作内容详情", readConverterExp = "如=JSON格式的规则变更记录")
    private String operationContent;

    /** 操作结果（成功/失败） */
    @Excel(name = "操作结果", readConverterExp = "成=功/失败")
    private String operationResult;

    /** 错误信息（当操作结果为失败时记录） */
    @Excel(name = "错误信息", readConverterExp = "当=操作结果为失败时记录")
    private String errorMessage;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setPassCardCode(String passCardCode)
    {
        this.passCardCode = passCardCode;
    }

    public String getPassCardCode()
    {
        return passCardCode;
    }

    public void setStoreInfo(String storeInfo)
    {
        this.storeInfo = storeInfo;
    }

    public String getStoreInfo()
    {
        return storeInfo;
    }

    public void setOperatedStoreId(String operatedStoreId)
    {
        this.operatedStoreId = operatedStoreId;
    }

    public String getOperatedStoreId()
    {
        return operatedStoreId;
    }

    public void setOperatedStoreName(String operatedStoreName)
    {
        this.operatedStoreName = operatedStoreName;
    }

    public String getOperatedStoreName()
    {
        return operatedStoreName;
    }

    public void setOperationType(String operationType)
    {
        this.operationType = operationType;
    }

    public String getOperationType()
    {
        return operationType;
    }

    public void setOperationStartTime(Date operationStartTime)
    {
        this.operationStartTime = operationStartTime;
    }

    public Date getOperationStartTime()
    {
        return operationStartTime;
    }

    public void setOperationEndTime(Date operationEndTime)
    {
        this.operationEndTime = operationEndTime;
    }

    public Date getOperationEndTime()
    {
        return operationEndTime;
    }

    public void setOperatorId(String operatorId)
    {
        this.operatorId = operatorId;
    }

    public String getOperatorId()
    {
        return operatorId;
    }

    public void setOperatorName(String operatorName)
    {
        this.operatorName = operatorName;
    }

    public String getOperatorName()
    {
        return operatorName;
    }

    public void setOperationContent(String operationContent)
    {
        this.operationContent = operationContent;
    }

    public String getOperationContent()
    {
        return operationContent;
    }

    public void setOperationResult(String operationResult)
    {
        this.operationResult = operationResult;
    }

    public String getOperationResult()
    {
        return operationResult;
    }

    public void setErrorMessage(String errorMessage)
    {
        this.errorMessage = errorMessage;
    }

    public String getErrorMessage()
    {
        return errorMessage;
    }

    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("passCardCode", getPassCardCode())
                .append("storeInfo", getStoreInfo())
                .append("operatedStoreId", getOperatedStoreId())
                .append("operatedStoreName", getOperatedStoreName())
                .append("operationType", getOperationType())
                .append("operationStartTime", getOperationStartTime())
                .append("operationEndTime", getOperationEndTime())
                .append("operatorId", getOperatorId())
                .append("operatorName", getOperatorName())
                .append("operationContent", getOperationContent())
                .append("operationResult", getOperationResult())
                .append("errorMessage", getErrorMessage())
                .append("createTime", getCreateTime())
                .append("phone", getPhone())
                .toString();
    }
}
